Skip to content

[FIX] tableview: Avoid unnecessary calls to setSortingEnabled#7109

Merged
markotoplak merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/table-sort-change-signal
Jun 12, 2025
Merged

[FIX] tableview: Avoid unnecessary calls to setSortingEnabled#7109
markotoplak merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/table-sort-change-signal

Conversation

@ales-erjavec
Copy link
Contributor

Issue

Fixes: #7103

Description of changes

setSortingEnabled disconnects/reconnects Qt's internal connections to model.sort(), causing client
sortIndicatorChange connections to trigger before the model is actually sorted. Avoid unnecessary calls.

The strange thing is this should have been happening also on Qt < 6.8.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.73%. Comparing base (5872eb6) to head (b85ee6e).
⚠️ Report is 71 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7109      +/-   ##
==========================================
- Coverage   88.73%   88.73%   -0.01%     
==========================================
  Files         332      332              
  Lines       73450    73451       +1     
==========================================
  Hits        65176    65176              
- Misses       8274     8275       +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@markotoplak markotoplak merged commit 3af1ed4 into biolab:master Jun 12, 2025
25 of 29 checks passed
@ales-erjavec ales-erjavec deleted the fixes/table-sort-change-signal branch June 13, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants